<!--
 * @Author: liubei
 * @Date: 2021-12-05 20:32:51
 * @LastEditTime: 2021-12-05 20:39:13
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>iframe2</div>
    <script>
        alert('iframe2 run')

        window.addEventListener('load', function() {
            alert('iframe2 load')
        })
        
        document.addEventListener('DOMContentLoaded', function() {
            alert('iframe2 DOMContentLoaded')
        })
    </script>
</body>
</html>